package com.woniuxy.client;

import com.woniuxy.domain.Ticket;
import com.woniuxy.dto.JsonResultDto;
import com.woniuxy.param.SeatXYParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("RoomService")
@RequestMapping("/ticket")
public interface OrderClientRoom {
    @GetMapping("/selectValidTicketByXY")
    public JsonResultDto<Ticket> selectValidTicketByXY(@SpringQueryMap SeatXYParam seatXYParam);
    @GetMapping("/changeTicketOrder")
    public boolean changeTicketOrder(@SpringQueryMap Ticket ticket);
    @PutMapping("/changeOrderSuccess")
    public boolean changeOrderSuccess(@SpringQueryMap Ticket ticket);
    @PutMapping("/changeOrderFailed")
    public boolean changeOrderFailed(@SpringQueryMap Ticket ticket);
    @PutMapping("/changeOrderOver")
    public boolean changeOrderOver(@SpringQueryMap Ticket ticket);
    @GetMapping("/selectTicketByCode")
    public Ticket selectTicketByCode(@RequestParam("code") String code);
}
